FROM python:3.7.9


RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
RUN apt update
RUN apt install poppler-utils -y
RUN apt install git -y
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tornado
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pdf2image
RUN pip install numpy -i https://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests
 

COPY . /root/app/

WORKDIR /root/app/

EXPOSE 8999
CMD ["python","app.py"]